package com.lagou.rpc.config;

import com.lagou.rpc.zk.CuratorZkClient;
import com.lagou.rpc.zk.ZkClient;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

import java.util.Arrays;
import java.util.List;

@Configuration
public class ZkConfig {

    @Bean
    ZkClient zkClient() {
        return new CuratorZkClient("127.0.0.1:2181");
    }

    /**
     * 服务器端的service列表,先写死吧
     * @return
     */
    public static List<String> serviceList() {
        return Arrays.asList("userService", "resumeService");
    }
}
